<template>
<div>
  <h1>标签信息</h1>
  <el-table
    :data="tableData"
    stripe
    style="width: 100%">
    <el-table-column
      prop="tid"
      label="标签"
      width="180">
    </el-table-column>
    <el-table-column
      prop="create_time"
      label="创建时间"
      width="180">
    </el-table-column>
    <el-table-column
      prop="alter_time"
      label="更新时间"
      width="180">
    </el-table-column>
    <el-table-column
      prop="gid"
      label="货物类型">
    </el-table-column>
    <el-table-column
      prop="uid"
      label="分配用户">
    </el-table-column>
  </el-table>
  </div>
</template>

<script>
import { showtag_post } from './axios_api/api';
  export default {
    data() {
      return {
        tableData: []
      }
    },
    mounted(){
      this.gettag()
    },
    methods:{
      gettag(){
        showtag_post().then(resp=>{
          this.tableData = resp.taglist
          console.log(this.tableData);
        })
      }
    }
  }
</script>
